package com.qf.sl.youshare.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by IDEA
 * User : SL
 * on  2015/2/22.
 * 20:38
 */
public class Circle {

    /**
    "groupid": "10",
    "groupname": "K歌圈",
    "cateid": "0",
    "groupdesc": "麦克风都让我征服",
    "count_topic": "7",
    "count_user": "4",
    "isopen": "0",
    "uptime": "1418798204",
    "role_leader": "组长",
    "photo": "/quan/uploadfile/group/0/0/10.png",
    "path": "0/0",
    "tag": ""
     */

    private String groupId;// 10,
    private String groupName;// K歌圈,
    private String cateId;// 0,
    private String groupDesc;// 麦克风都让我征服,
    private String countTopic;// 7,
    private String countUser;// 4,
    private String isOpen;// 0,
    private String upTime;// 1418798204,
    private String roleLeader;// 组长,
    private String photo;/// quan/uploadfile/group/0/0/10.png,
    private String path;// 0/0,
    private String tag;//

    public void parseJSON(JSONObject jsonObject){
        try {
            groupId = jsonObject.getString("groupid");
            groupName = jsonObject.getString("groupname");//K歌圈,
            cateId = jsonObject.getString("cateid");//0,
            groupDesc = jsonObject.getString("groupdesc");//麦克风都让我征服,
            countTopic = jsonObject.getString("count_topic");//7,
            countUser = jsonObject.getString("count_user");//4,
            isOpen = jsonObject.getString("isopen");//0,
            upTime = jsonObject.getString("uptime");//1418798204,
            roleLeader = jsonObject.getString("role_leader");//组长,
            photo = jsonObject.getString("photo");///quan/uploadfile/group/0/0/10.png,
            path = jsonObject.getString("path");//0/0,
            tag = jsonObject.getString("tag");//

        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

    public String getGroupId() {
        return groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public String getCateId() {
        return cateId;
    }

    public String getGroupDesc() {
        return groupDesc;
    }

    public String getCountTopic() {
        return countTopic;
    }

    public String getCountUser() {
        return countUser;
    }

    public String getIsOpen() {
        return isOpen;
    }

    public String getUpTime() {
        return upTime;
    }

    public String getRoleLeader() {
        return roleLeader;
    }

    public String getPhoto() {
        return photo;
    }

    public String getPath() {
        return path;
    }

    public String getTag() {
        return tag;
    }
}
